package com.md01.service;

import com.md01.entity.Book;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface BookService {

    List<Book> selectAllBooks();

    Book selectBookById(int id);

    int deleteBookById(int id);

    int insertBook(Book book);

    int updateBook(Book book);

    // 根据书名查询图书
    List<Book> selectBookByBookName(String bookName);


}
